#include "./app_timer.h"
#include "./app_led.h"
#include "./app_can.h"
struct timer_dev_t *sys_timer;
extern uint16_t appCanCount ;
void utimer1_500ms_callback(struct timer_dev_t dev,void* param);

void app_timer_init(void)
{
    timer_init(&sys_timer);
    sys_timer->set_inject_callback(sys_timer,utimer1_500ms_callback,0);
		sys_timer->timer_enable();

}

/**
 * @brief 定时器1 500ms 延时函数，对于想要周期性调用的函数应该定义在函数内部
 * 
 */
void utimer1_500ms_callback(struct timer_dev_t dev,void* param)
{
	appCanCount++;
  lamp->timer_callback(lamp);
  comm_dev->can_clear_running_callback(comm_dev);
	
}



